<?php

class FontendController extends CController {
    protected $user;
    protected $current_location;
    public function init() {
        parent::init();
        $this->user = Yii::app()->session['user'];
        
        $lang = 'vi';
        if (isset($_GET['lang'])) {
            $lang = $_GET['lang'];
        }        
        Yii::app()->sourceLanguage = '00';
        Yii::app()->language = $lang;
    }
    
}